package com.yuwen.service;

import com.yuwen.pojo.Data;

import java.io.InputStream;
import java.util.List;


public interface DataService {
    // 批量添加数据
    public boolean addBatchData(List<Data> dataList);


    // 根据id查询用户数据
    public Data findDataById(Long id);

    // 根据id修改数据
    public boolean updateDataById(Data data);

    // 批量导入数据
    public boolean importDataInfo(String fileName, InputStream is);
    public List<Data> queryAll();
    public void removeAll();
    public boolean remove(Long id);
    public boolean add(Data data);

    public Data query(Long id);

    boolean update(Data data);
    public List<Data> findDataByY(double y);
}
